﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WebSocketCore.Domain.Account
{
    public class User:IUser
    {
        public string Id { get; set; }
        public string Name { get; set; }
        public override bool Equals(object obj)
        {
            return this.Id == ((IUser)obj).Id;
        }
        public override int GetHashCode()
        {
            return Id.GetHashCode() ^ Name.GetHashCode();
        }
    }
}
